package cn.swpu.blog.dao;

import cn.swpu.blog.entity.Tag;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface TagMapper {
    int deleteByPrimaryKey(Integer tagId);

    int insert(Tag record);

    Tag selectByPrimaryKey(Integer tagId);

    List<Tag> selectAll();

    int updateByPrimaryKey(Tag record);

    /**
     * 插入数据返回自增主键
     * @param record
     * @return
     */
    int insertTagByString(Tag record);
}